const Main= ()=>import("@/views/Main.vue")
export default[
//  首页
   {
      path:'dashboard',
      name:'home',
      component:Main,
      meta:{
         title:'home',
         icon:"iconfont icon-home",
      },
      children:[
         {
            path:'',
         name:'dashboard',
         component: () => import("@/views/Dashboard.vue"),
         meta:{
            title:'home',
            icon:'iconfont icon-home'
         }
         }
      ]
   },
   // 运营管理
   {
      path:'operate',
      name:'operate',
      component: Main,
      meta:{
         title:'operate.operatetube',
         icon:"iconfont icon-tongji",
      },
      children:[
         {
            path:"ordertube",
            name:"ordertube",
            component:()=>import('@/views/operate/Ordertube.vue'),
            meta:{
               title:'operate.ordertube',
            }
          },
          {
            path:"commenttube",
            name:"commenttube",
            component:()=>import('@/views/operate/Commenttube.vue'),
            meta:{
               title:'operate.commenttube',
            }
          },
          {
            path:"freighttube",
            name:"freighttube",
            component:()=>import('@/views/operate/Freighttube.vue'),
            meta:{
               title:'operate.freighttube',
            }
          }
      ]
   },
   // 商品管理
   {
      path:'goodstube',
      name:'goodstube',
      component: Main,
      meta:{
         title:'goods.goodstube',
         icon:"iconfont icon-shangpin",
      },
      children:[
         {
            path:"goodslist",
            name:"goodslist",
            component:()=>import('@/views/goodstube/Goodslist.vue'),
            meta:{
               title:'goods.goodslist',
            }
          },//商品列表添加
          {
            path:"create",
            name:"productcreate",
            component:()=>import('@/views/goodstube/ProductCreate.vue'),
            meta:{
               title:'goods.productcreate',
               hidden:true,//不显示左边功能菜单
               keepAlive:true
            }
          },//商品列表编辑
          {
            path:"modify/:id",
            name:"productmodify",
            component:()=>import('@/views/goodstube/ProductModify.vue'),
            props:true,
            meta:{
               title:'goods.productmodify',
               hidden:true,//不显示左边功能菜单
               keepAlive:true
            }
          },
          {
            path:"goodsgroup",
            name:"goodsgroup",
            component:()=>import('@/views/goodstube/GoodsGroup.vue'),
            meta:{
               title:'goods.goodsgroup',
            }
          },
          {
            path:"categorygoods",
            name:"categorygoods",
            component:()=>import('@/views/goodstube/CategoryGoods.vue'),
            meta:{
               title:'goods.categorygoods',
            }
          }
      ]
   },
   // 推广管理
   {
      path:'extensiontube',
      name:'extensiontube',
      component: Main,
      meta:{
         title:'extension.extensiontube',
         icon:"iconfont icon-fenlei",
      },
      children:[
         {
            path:"postertube",
            name:"postertube",
            component:()=>import('@/views/extensiontube/Postertube.vue'),
            meta:{
               title:'extension.postertube',
            }
          },
          {
            path:"coupontube",
            name:"coupontube",
            component:()=>import('@/views/extensiontube/Coupontube.vue'),
            meta:{
               title:'extension.coupontube',
            }
          }
      ]
   },
   // 用户管理
   {
      path:'usertube',
      name:'usertube',
      component: Main,
      meta:{
         title:'user.usertube',
         icon:"iconfont icon-tongji",
      },
      children:[
         {
            path:"member",
            name:"member",
            component:()=>import('@/views/usertube/Member.vue'),
            meta:{
               title:'user.member',
            }
          },
          {
            path:"address",
            name:"address",
            component:()=>import('@/views/usertube/Address.vue'),
            meta:{
               title:'user.address',
            }
          }
      ]
   },
   // 系统管理
   {
      path:'systemtube',
      name:'systemtube',
      component: Main,
      meta:{
         title:'system.systemtube',
         icon:"iconfont icon-xitong",
      },
      children:[
         {
            path:"configure",
            name:"configure",
            component:()=>import('@/views/systemtube/Configure.vue'),
            meta:{
               title:'system.configure',
            }
          },
          {
            path:"administrators",
            name:"administrators",
            component:()=>import('@/views/systemtube/Administrators.vue'),
            meta:{
               title:'system.administrators',
            }
          },
          {
            path:"journal",
            name:"journal",
            component:()=>import('@/views/systemtube/Journal.vue'),
            meta:{
               title:'system.journal',
            }
          },
          {
            path:"role",
            name:"role",
            component:()=>import('@/views/systemtube/Rolemanagement.vue'),
            meta:{
               title:'system.role',
            }
          }
      ]
   },
  
]